// 单据性质
import request from "@/api/request";

// 增加
export const add_xzrecei = (params) => {
    return request({
      url: "/essentialdata/work/insert",
      method: "post",
      data:params,
      headers:{"Content-Type":"application/json;charset=UTF-8"}
    });
  };

  // 查询单据类型列表
  export const typelist_xzrecei = (params) => {
    return request({
      url: "/essentialdata/work/sheetTypeList/"+params,
      method: "post",
    });
  };

  // 删除单据流水号
  export const delete_xzrecei = (params) => {
    return request({
      url: "/essentialdata/work/delete/"+params,
      method: "post",
    });
  };

  // 分页查询单据流水号
  export const search_xzrecei = (params) => {
    return request({
      url: "/essentialdata/work/selectAll",
      method: "post",
      data:params,
    });
  };

  // 查询单据流水号详情
  export const details_xzrecei = (params) => {
    return request({
      url: "/essentialdata/work/selectDetails/"+params,
      method: "post",
    });
  }

  // 修改单据流水号
  export const update_xzrecei = (params) => {
    return request({
      url: "/essentialdata/work/update",
      method: "post",
      data:params,
      headers:{"Content-Type":"application/json;charset=UTF-8"}
    });
  };
